pp108 : Enabling Payload Validation at Gateway (Deprecated)

Enabling Payload Validation at Gateway (Deprecated)

This topic describes enabling payload validation at Gateway.

Payload is validated at Gateway to ensure that the payload of the SOAP request coming in to the Gateway is according to WSDL Web service operation.
Note: This topic describes the procedure for enabling the validation of payload alone and this validation excludes the validation of SOAP protocol. The property that must be enabled for validating payload is deprecated and there are three new properties that are added. The following are the three properties:

  • If you want to validate SOAP protocol alone in a message, enable SOAP validation property. For information, refer Enabling SOAP Validation.
  • If you want to validate SOAP protocol and the request, enable the request validation property. For information, refer Enabling Request Validation.
  • If you want to validate SOAP protocol, the request, and the response then enable the response validation property. For information, refer Enabling Response Validation.

When a SOAP request is sent to the Web gateway, the request is forwarded to the appropriate service group using the namespace in the request. To process the request, the ESB layer checks for WSDL with the operation name from the LDAP. If the WSDL is found, the WSDL is returned for processing. But if the element name and the operation name are not the same in the WSDL, ESB will fail to validate it. All WSDL(s) in Process Platform contain element name in WSDL schema which is the same as the operation name and ESB can validate them. But a valid WSDL need not always have element name in WSDL schema which is same as its operation name. If a WSDL request is formed using the element name and not the operation name then ESB cannot find the WSDL implementation even though the SOAP request is valid. When payload validation is enabled and when the element name is not the same as the operation name, the validation will fail.

  1. Assign com.eibus.web.payload.validation property 'true' in wcp.properties file using Management Console . For more information on modifying a property, refer to Modifying a Property.
    Note: When the com.eibus.web.payload.validation property in the wcp.properties file is set to false, payload validation is disabled.
  2. Restart the Web server.

The payload validation at Gateway is enabled.